#!/bin/bash
# 启动 AI 通信系统

WXWIN="/d/vc/wxWidgets-3.2.7"
export PATH="$WXWIN/lib:$PATH"

# 检查可执行文件位置
if [[ -f "cbp2make_ai.exe" ]]; then
    EXECUTABLE="./cbp2make_ai.exe"
elif [[ -f "bin/cbp2make_ai.exe" ]]; then
    EXECUTABLE="./bin/cbp2make_ai.exe"
else
    echo "❌ cbp2make_ai.exe not found."
    echo "Please build first or check file location."
    exit 1
fi

echo "🚀 Starting AI Communication System..."
echo "💡 DLL Path: $WXWIN/lib"
echo "💻 Executable: $EXECUTABLE"
echo

"$EXECUTABLE" "$@"
